<case value="customer_name">
	<input id="username_text"  type="hidden" name="{$[type]form.name}" value="{$[type]form.value}" />
	 <php>
		if($form['value']){
			$usrename = M('customer')->where("id=$form[value]")->getField('customer_name');
		}
	</php>
    <input  type="text" class="form-control input text" name="{$[type]form.name}_num" value="{$usrename}" onblur="get_customer_name(this.value);"  {$[type]form.extra_attr}>
    	<script>
    		function get_customer_name(customer){
    			$.ajax({
				   type: "POST",
				   url: "{:U('/admin/ajax/get_customer_name')}",
				   data: "customer_name="+customer,
				   success: function(msg){
				     $("#username_text").val(msg);
				   }
				});
    		}
    	</script> 
</case>